opened if statement for empty value check (testSubmit)