Added a template for the login page.
Also added a validate() method for the EditForm class, so that nickname collisions are prevented.