added validation that number can only be added in the time field