Registration and authorization of an user