Fix bug not directing to logged in as page