updated order of operations for citrix login function