date validation added to controllers