added maximum length in register form