changes made to log in and Main