moved authentication methods