Added templates, errorlog and login controller