date validation using moment.js