validanting hour as integer number