made changes to login function