Fixed coding style
renamed function getCredentials to get