Let the error messages to be shown via alert box