Better error handling for incorrect user variables