moved added user token to rest of user sections and moved logging, netowkring and rest api before security