Adding logic to create action and Creating login view