render a star on required field label

add the function render a star with label when field is required.