added search result page, fix some user login issues