Fixed an issue when creating new users