fixed bug in pw protect
fixed bug in search