little patch for user id as mail address for json requests
bugfix