Adding plugins, fixing user id and sessions