login code and search code