fixed bug: program crashes when using coupon on existing user
fix bug: program crashes when registering with an existing email address