Fix for sign up url rewrite error after login