Added search user template and fixed a bug.