Continued refactoring of login and register views