make `formCredentials` directive take arguments to specify field names