Update to login and registration(thanks to silvio)

master of confusion :3