added an error message in the frequency.php for having more than 3 words