Fixing time validation with Integer class and using exception Handling