fix for user input check