modify the rest-auth api