Minor bugs fixed

Template for the grid on licence key.
Generate new key with client-side validation
Date format script improved.