validation/cancel button