Fixed a bug in the permissions when creating a new user