fix bug where after logging in via facebook, it would redirect to a blank page