Using credential store for saving credentials