customer input error checking fix in Controller