Added missing params to the credentials class
View refactor