Added basic edit check for time field

Added the isTimeValid to the BasicValidationRules class and added
several unit tests for it.