Set max length for input fields