Found the solution. Upon checking the console, i notice that that the Askpass target was being called twice. It seems that this was called the first time for the username, and the second time for the password. I used the following code to determine the reason the Askpass target was being called and responded with the appropriate value.
NSArray *args = [[NSProcessInfo processInfo] arguments];