Handle User authentication and permissions.