Add constraints when updating users