validation on user inputs - names and messages