When new project is created using the XCode template and selecting AG_SECURITY, it uses field "loginName", but should use "username".