check the user input from back-end