Add login tests
Add tests for the login