handling 422 status - minor fix