Help my custom member sign up form won't close?!

I have a problem with my custom sign up form. Currently, when a person click’s ‘Continue’ (the SignUp button) it collects the required information, registers the person as a member and using the wix.Location API it redirects the new user to the correct next page - hurrah!

However, clicking the ‘Continue’ button DOES NOT close the member Signup Form/lightbox. If I then click a close button, i’m redirected to my home page (not the correct redirected page).

I’d appreciate some help please - this is driving me slightly nuts!

Thanks,

@yisrael-wix - Can you help me? I’ve seen your fixes for others with similar problems but they don’t seem to help me. I’d be very grateful of the help.
www.agefit.nz