Created constructor and basic implementation of credentials methods