Implemented some user authorization.