Added authentication checks for user and people controller