Added maxlength for year