fix bug which tried to find routes even if table did not exist
if no content trow 404
if user is anon. don't log username
check if token is available before getting user