There is no sound technical or security justification for having a maximum character limit, up to some obscenely long limit to prevent the user wasting server resources by submitting giant forms.
Also, no one should be using raw HMAC to do password checking. At the very least use something like PBKDF2.