added login functionality, view, template and link to homepage.