Fixed errors, too many ends. Added searching by first name, last name and email.