implemented login and home page template