Finished code for day 3: Logins