add authenticate_user to SnippetsController