Added a login view. Partially implemented redirection logic for not authenticated users.