login form on homepage and protected dashboard