JS pw match check implemented