Adding templates for login, Adding functionality for login in views