mifosx-567 ensure duplicate externalId for staff and loan generate valid ...

...json error response