error response when validation fails
adding PUT and DELETE