Fixed issue where submit button was disabled with 1 character remaining