Make authorization for socket io, update sessions of express and socket emiting updateSession with any socket, fix for login and register callbacks