fix redirect to back after login