anchor.diff:  	        couch_util:get_value(<<"roles">>, UserProps))
           end
       end,
  -    case Resp of
  -        nil -> nil;
  -        _ -> {ok, Resp, nil}
  -    end.
  +    maybe_validate_user_creds(Resp).
   
   update_user_creds(_Req, UserDoc, _Ctx) ->
       {_, Ref} = spawn_monitor(fun() ->
  
positive.code:         throw:conflict ->
              ok
      end.
  
negative.code:     exit({seq, EndSeq}).
  
  load_user_from_db(UserName) ->
      try fabric:open_doc(dbname(), docid(UserName), [?ADMIN_CTX, ejson_body, conflicts]) of
  	{ok, Doc} ->
  	    {Props} = couch_doc:to_json_obj(Doc, []),
  	    Props;
  