Finished implementation of Login();