Not getting message on submit if required fields empty