- Added tests for login (forget to check a box last commit)
- Added mocking code for test usage
- Fixed one error found via test