Had to move the enable_oauth2_plugin check in to the RegisterUsergrid function left note as to why