URGENT: Coupons not applying correctly

Hello.

This is quite urgent and I hope someone can help. When someone tries to sign-up using a coupon for free registration, they enter the coupon, click apply and are immediately logged in as a basic free user, without the permissions of the membership level that the coupon relates to.

Please can I have some help with this?

Best wishes, Andrew.