prevent password generator link from moving to another page