updated warning message when inputs incorrect.