Fixed validation. Added exit confirmation.