Fix login not working. More breaking up of pages into directives.