You can achieve this by writing a simple program that checks the input for non-alphabetic characters. If the input contains any characters that are not letters, the program will prompt the user to enter a valid sentence. If the input is valid, it will reverse the letters in each word and print the result.
Here's a sample code implementation in Python:
```python
def reverse_words(sentence):
words = sentence.split()
reversed_words =


