Changes select to avoid updating searched user if user is in the database.