small changes for login and registration