The black screen with a blue box is most likely not a Windows password, that is usually a BIOS password box, if so, you need to contact the laptop manufacturer to ask them for the instructions to reset the BIOS password, the method is device specific.
Please provide a photograph of the password box you are seeing.