A washing machine is allowed in a bathroom if the manufacturer says it's okay. It must be connected to a fused connection unit, which looks like a wire from the boiler, hardwired into the wall.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.