Added restrictions for text input to match database size restrictions