Added redirect to generate data entry if not exist.