added report date validation and fixed lots of things