set/get credential by user