fixed render to render_to_response, added max_length to charfiled