Reformat credentials class