add date validation to event new and set path to dashboard