Added all the logic for Generate Academic Year.

I also validate all the field using model validations.
I did also make sure of using enumerations in view from data in database.