Fixed minor bug for user creation