adjusted projects and newcomments controller on authentication