registration and authorization