check for empty textbox before processing