setting mandatory fields