add psw validation