Registration Redirect Issues

Here is my registration page:

Sometimes when you click "Sign Up" you are correctly redirected to a page that allows you to enter in a coupon, like screenshot 1. However sometimes you are redirected to a user signup page, like screenshot 2.

The URL is the same in both cases.

Why is this happening?