add alert message for min entry form and fix an issues with max entry checking when refresh