Correct credential func to refactored class