logout redirects to page the user was on instead of home