fix up login and homepage views