fix post fields, several params, error handlings