Changed log out behaviour to redirect to homepage on log out