Add and refactor tests for view `Login`

`coverage` reports that all code paths in view `Login` are covered.