fix register and admin approval error