Added validate day function. Started work on email functions