updated bug fixes in login