added better 400 error handling