Added check so it doesn't search on blank search field