Fix validation so it won't pass years with less than 4 digits.

#5976 

This PR fixes the year validation in Publication form so years with less 4 digits won't be validated.