Now properly logs users out.