fixed typo in error message, removed redundant else in mm-dd-yyyy