@ErinD76
You're combing two very different problems into one issue.
If the PC won't power on, then when you press the power button, nothing happens -- no lights, no screen, no fan noise.
If the PC powers on but then prompts for a password, that means it has a BIOS password set -- and we can't help you with that.
So, which it is?
I am a volunteer and I do not work for, nor represent, HP