implemented redirect to main page after user registration
restructured the search and profile display to  show search criteria and search page only if users are logged in