Actually add the security constraint when searching

oops..
Avoid crashes in editPersonalInfo for new users