added send email function and searching users