changes to login and registration workflow