How to make the entry of a required text field

How to make the entry of a required text field