Registration and authorization work