link profile search bar, added input validation