Fixed flash-error to appear if user enters no results search term. And ENV variable to work within code.