adding protection to user input number