fix redirect after successful auth