added max length for text inputs