fix error in admin Ajax login function