Fixed break not in loop issue when restructuring the code to get a function for the login() methods. Also prepared for future implementations of login mechanisms.