added alternate way to get the password