moved 422 to controller instead of model