Proper handling of pages that do not require authentication
Removed unnecessary log-statement