add ajax for login, logout and search result