To mark a field is required with red *

This was something I did a little while back: