Added validator function to validate alphabet in the input fields