check date is valid
small fixes here & there@