updated front end with error messages