Added more tests and login functionality.