Register user, authorization and authenication