Started on tests and code for login functionality.