Redirect to mainpage if login from auth pages. Fix #697

This makes it so any login with "auth" in the URL is ignored when doing the redirect to the page you were trying to access. This stops issues we were having logging in from the create user and forgot password pages.