Welcome to Android Central! What does your password have to do with powering off your phone? Is it asking for the Google username/password for the account that was previously associated with the phone? If so, this is Google's Factory Reset Protection, which is meant to discourage people from stealing a phone and doing a simple factory reset to make it their own. You have to remember your password.