logout redirects to login page rather than foods index