Added user validation for keywords and error message