fix validation errors and add loader img