User able to submit form with empty value for mandatory field