Changed format of Time class, entered validations and string format