ogsadmin login function complete