Added stored credential function
Added stored cred function