scaffolding and defining login tests

This should include all the basic unit tests we need to implement on the
login of the web application.
scaffolding and definition of registration tests