Implemention of authorization and registration