fixed bug in signup/login redirect
made it less ugly