fixed bugs in validations
corrected regex for time validations
corrected the tests