changes for login functionality