adds user authentication in controller; adds view logic for user session on homepage