fixing issues with creating users