fixed issue with creating users