fixes error msgs and search by users