Added another error check for postFormData