Use this syntax :
//private variable in the class declaration section
private EditText txtFirstName=null;
@Required(order = 2, messageResId = R.string.err_required_field)
It's in the lib's documentation (and the lib itself is an excellent one).