Yes, I have come out with a new locking system for ComputerCraft. Although not the best (probobly) it is still a good try for me.
Feel free to post suggestions on how to fix it. I would like everyone's opinons on this. (Yes, i realize i didnt loop it. I didnt think about that while re-writing my older codes.")

pastebin: ccpY1yU8

rawpaste data:

os.pullEvent = os.pullEventRaw
term.clear()
term.setCursorPos(1,1)
user = ("username") --User here.
pass = ("awesome") --Password here.

write("Username:")
local username = read()
if username == (user)
then
write("Password:")
local password = read("*")
if password == (pass)
then
print("Logging in. . .")
sleep(3)
shell.setDir(user)
term.clear()
term.setCursorPos(1,1)
print("Currently logged in as: ", user)
else
print("Wrong username or pass")
sleep(3)
os.reboot()
end
else
write("Password:")
local fakepass = read("*")
print("Wrong username or pass")
sleep(3)
os.reboot()
end

And it may have missed indents in the /CODE things again.