Added trim and validation for blank entry on input field