fix the login process and complete the dynamic searching function for
cartype module