used http status code 422 instead of 409 for validation erros