added the search block and result page, Also added the user access check.