added validation to freetimes() input