A washing machine is allowed in a bathroom if the manufacturer says it's okay. You can't just plug the machine in with a sockets. An electrician will hardwire it.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.