AuthorizeUser bug fixed