Basic model for time and added validation for time model.