added simple validation to bad request