Changes to login function
Changes to login function