sign up causes redirect to login page