improved required fields check before submission

all fields have to be filled up before being able to submit