updated tests in users controller spec and updated logic in user create