Login html form functionality, login unit testing and mocking.