term.clear()
term.setCursorPos(1,1)
term.setBackgroundColor(512)
print("                                                   ")
print("                                                   ")
print("                                                   ")
print("                                                   ")
print("                                                   ")
print("                                                   ")
print("                                                   ")
print("                                                   ")
print("                                                   ")
print("                                                   ")
print("                                                   ")
print("                                                   ")
print("                                                   ")
print("                                                   ")
print("                                                   ")
print("                                                   ")
print("                                                   ")
print("                                                   ")
print("                                                   ")

term.setCursorPos(1,1)
print("LabyOS - New OS")
term.setCursorPos(28,1)
print("Programm by DanielLaby99")
term.setCursorPos(1,2)

term.setBackgroundColor(colors.black)
print("                                                   ")
term.setBackgroundColor(512)


term.setCursorPos(15,5)
term.setBackgroundColor(colors.red)
print("         Anmeldung:        X")
term.setBackgroundColor(2048)
term.setCursorPos(15,6)
print("                            ")
term.setCursorPos(15,6)
print("                            ")
term.setCursorPos(15,7)
print("                            ")
term.setCursorPos(15,8)
print("                            ")
term.setCursorPos(15,9)
print("                            ")
term.setCursorPos(15,10)
print("                            ")
term.setBackgroundColor(512)
term.setCursorPos(20,7)
term.setBackgroundColor(2048)

write("Benutzer: ")
term.setCursorPos(20,8)
print("Passwort: ")
term.setCursorPos(30,7)
input1 = read()


      if input1 == "" then
term.setCursorPos(20,10)
		 shell.run("/Laby/Login")
      else
      end







if fs.exists("/Laby/user/"..input1.."") then
term.setCursorPos(30,8)
   input2 = read("*")
   
   
   
   
   
         if input2 == "" then
term.setCursorPos(20,10)
		 shell.run("/Laby/Login")
      else
      end
   
   
   
   
   
   
   
   if fs.exists("/Laby/user/"..input1.."/"..input2.."") then
term.setCursorPos(20,10)
shell.run("/Laby/GastW1")
   else
term.setCursorPos(20,10)
      print("Falsches Passwort")
	  sleep(1)
   shell.run("/Laby/Benutzer")
   end
 
 
else
term.setCursorPos(20,10)
   print("Falscher Benutzername")
   sleep(1)
   shell.run("/Laby/Benutzer")
end

  







shell.run("clear")