Changed method for input validation errors