errors in GET and POST