Made Credentials also a data-type