Added pre render view to check for authenticated user.