Regex functionality for search bar, added new routes to show homepage to logged in user