verifies if user is already authenticated