Refactored the two views: First view is "login", second is "protected"