Fixed return type issue with init
Added credential update method