FIXED: user key export error

Added a check that the number the user enters is a valid number.